package com.ruoyi.algorithm.service;

import com.ruoyi.algorithm.entity.Manufacturer;
import com.ruoyi.algorithm.model.ListManufacturerRequestModel;
import com.ruoyi.algorithm.model.ManufacturerDDBModel;
import com.beihu.sightplus.common.response.PageResult;

import java.util.List;

public interface ManufacturerService {
    /**
     * 查询厂商下拉框数据
     */
    List<ManufacturerDDBModel> getManufacturerDDBModelList();

    /**
     * 添加厂商
     *
     * @param manufacturer
     * @return
     */
    boolean addManufacturer(Manufacturer manufacturer);

    /**
     * 删除厂商
     * @param id
     * @return
     */
    boolean deleteManufacturer(Long id);

    /**
     * 修改厂商
     * @param manufacturer
     * @return
     */
    boolean updateManufacturer(Manufacturer manufacturer);

    /**
     * 通过id查询厂商
     * @param id
     * @return
     */
    Manufacturer getById(Long id);


    /**
     * 分页查询厂商
     * @param model
     * @return
     */
    PageResult listManufacturer(ListManufacturerRequestModel model);
}
